package cn.com.huzo.model.entities.manufacture;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 加工承揽合同-加工明细记录实体类
 * <p>
 * @author 吴旭
 */
public class CommissionProcessingContractLinesMoEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -6007000471427063188L;
    private String LinesId;
    private Long HeaderId;
    private String ContractNo;            // 加工合同号
    private Long MoId;
    private Long ProductId;
    private String SoNo;                  // 主合同号（销售订单号）
    private String StyleNo;
    private String ProductName;
    private Double MoQuantity;            // 生产单数量
    private Long ColourId;
    private String ColourName;
    private Long SizeId;
    private String SizeName;
    private String UomName;
    private Double ContractQuantity;      // 实际加工数量（本次合同数量）
    private Double FinishedQuantity;      // 已经加工的数量

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getContractNo() {
        return ContractNo;
    }

    public void setContractNo(String ContractNo) {
        this.ContractNo = ContractNo;
    }

    public Long getMoId() {
        return MoId;
    }

    public void setMoId(Long MoId) {
        this.MoId = MoId;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public String getSoNo() {
        return SoNo;
    }

    public void setSoNo(String SoNo) {
        this.SoNo = SoNo;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }

    public Double getMoQuantity() {
        return MoQuantity;
    }

    public void setMoQuantity(Double MoQuantity) {
        this.MoQuantity = MoQuantity;
    }

    public Long getColourId() {
        return ColourId;
    }

    public void setColourId(Long ColourId) {
        this.ColourId = ColourId;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public Long getSizeId() {
        return SizeId;
    }

    public void setSizeId(Long SizeId) {
        this.SizeId = SizeId;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public String getUomName() {
        return UomName;
    }

    public void setUomName(String UomName) {
        this.UomName = UomName;
    }

    public Double getContractQuantity() {
        return ContractQuantity;
    }

    public void setContractQuantity(Double ContractQuantity) {
        this.ContractQuantity = ContractQuantity;
    }

    public Double getFinishedQuantity() {
        return FinishedQuantity;
    }

    public void setFinishedQuantity(Double FinishedQuantity) {
        this.FinishedQuantity = FinishedQuantity;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CommissionProcessingContractLinesMoEntity)) {
            return false;
        }

        final CommissionProcessingContractLinesMoEntity that = (CommissionProcessingContractLinesMoEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
